package com.whc.gulimall.ware.feign;

import com.whc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * gulimall-product->skuInfoController
 *
 * @author angaoen
 */
@FeignClient("gulimall-product")
public interface SkuInfoFeignService {

    /**
     * 通过skuId获取到skuName
     *
     * @param skuIds skuId列表
     * @return 统一返回结果
     */
    @PostMapping("/product/skuinfo/list/skuName")
    R listSkuNamesBySkuIds(@RequestBody List<Long> skuIds);

}
